﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace NPMonitor.DataModel
{
    [Table("Notifications")]
    public class NotificationData
    {
        [Key]
        public int Id { get; set; }

        public int UserId { get; set; }

        public int TaskId { get; set; }

        public string Event { get; set; }

        [NotMapped]
        public string JobName
        {
            get
            {
                return this.GetJobNameByJobId(TaskId);
            }
        }
    }
}
